//
//  NewSiteModel.m
//  WGFGlobalHouses
//
//  Created by waiguofang on 15/4/23.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import "NewSiteViewModel.h"

@implementation NewSiteViewModel


-(instancetype)initWithDic:(NSDictionary *)dic;
{
    if (self = [super init])
    {
        self.housingId = dic[@"housingId"];
        self.housingName = dic[@"housingName"];
        self.countryName = dic[@"countryName"];
        self.stateName = dic[@"stateName"];
        self.cityName= dic[@"cityName"];
        
        
        self.openingDate = dic[@"openingDate"];
        self.totalAmountUSD = dic[@"totalAmountUSD"];
        self.totalAmountCNY = dic[@"totalAmountCNY"];
        self.maxCommitionRate = dic[@"maxCommitionRate"];
       
        self.siteArea = dic[@"siteArea"];
        self.housingCount = dic[@"housingCount"];
        self.saledCount = dic[@"saledCount"];
        self.baozu = dic[@"baozu"];
        
        self.huigou = dic[@"huigou"];
        self.rent = dic[@"rent"];
        self.profit = dic[@"profit"];
        self.saleStatus = dic[@"saleStatus"];
        
        
        self.huigou = dic[@"detail"];
        self.rent = dic[@"longitude"];
        self.profit = dic[@"latitude"];
    

    }
    return self;
}
+(instancetype)newSiteViewModelWithDic:(NSDictionary *)dic;
{
    return [[self alloc]initWithDic:dic];
}

@end
